<template>
  <div class="app">
    <!-- 导航 -->
    <Navigation />
    <!-- 内容 -->
    <nuxt />
    <!-- 回到顶部 -->
    <div id="back-top" title="回到顶部">
      <img src="/img/back.png" alt="返回顶部" />
    </div>
  </div>
</template>

<script>
import Navigation from "~/components/Navigation";
export default {
  components: {
    Navigation
  }
};
</script>

<style lang="scss" scoped>
.app {
  width: 100%;
  height: 100%;
}
#back-top {
  position: fixed;
  bottom: 110px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: none;
  line-height: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #ccc;
  transition: all 0.2s;
  cursor: pointer;
  z-index: 11;
  img {
    display: inline-block;
    margin-top: 10px;
    height: 20px;
  }
}
#back-top:hover {
  background: rgb(231, 231, 231);
}
</style>
